package com.iotechn.unimall.admin.api.warehouseOperLog;

import com.iotechn.unimall.core.annotation.HttpMethod;
import com.iotechn.unimall.core.annotation.HttpOpenApi;
import com.iotechn.unimall.core.annotation.HttpParam;
import com.iotechn.unimall.core.annotation.HttpParamType;
import com.iotechn.unimall.core.annotation.param.NotNull;
import com.iotechn.unimall.core.exception.ServiceException;
import com.iotechn.unimall.data.domain.WarehouseOperLogDO;
import com.iotechn.unimall.data.model.Page;

/**
 * 库存商品表
 *
 * @author wxw
 * @email 
 * @date 2020-03-24 17:22:46
 */
@HttpOpenApi(group = "admin.warehouseOperLog", description = "")
public interface WarehouseOperLogService{

    @HttpMethod(description = "列表")
    public Page<WarehouseOperLogDO> list(
            @HttpParam(name = "pageNo", type = HttpParamType.COMMON, description = "页码", valueDef = "1") Integer page,
            @HttpParam(name = "limit", type = HttpParamType.COMMON, description = "页长度", valueDef = "20") Integer limit,
            @HttpParam(name = "title", type = HttpParamType.COMMON, description = "名称", valueDef = "") String title,
            @HttpParam(name = "timeInfo", type = HttpParamType.COMMON, description = "开始截止时间") String timeInfo,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId,
            @HttpParam(name="skuId",description = "商品id")Long skuId,
            @HttpParam(name="warehouseId",description = "库id")Long warehouseId
            ) throws ServiceException;

    @HttpMethod(description = "详情")
    public WarehouseOperLogDO detail(
            @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "Id") Long id,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

}

